package com.qiaofang.applet.service.member.service.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;

import java.util.List;

@Data
@ApiModel("经纪人详情DTO")
public class EmployeeListDto {

    @ApiModelProperty("经纪人唯一UUID")
    private String employeeUniqueUuid;

    @ApiModelProperty("经纪人UUID")
    private String employeeUuid;

    @ApiModelProperty("姓名")
    private String employeeName;

    @ApiModelProperty("部门名称")
    private String deptName;

    @ApiModelProperty("经纪人照片")
    private String employeePhotoUrl;

    @ApiModelProperty("职务名称")
    private String positionName;

    @ApiModelProperty("手机")
    private String mobilePhone;

    @ApiModelProperty("主推 true主推  false不主推")
    private Boolean recommend;

    @ApiModelProperty("推荐语")
    private String recommendDescribe;

    @ApiModelProperty("从业年份")
    private String workAge;

    @ApiModelProperty("标签内容列表")
    private List<String> labelContentList;

    public String getRecommendDescribe(){
        if (StringUtils.isBlank(recommendDescribe)){
            return "专业为您挑选好房";
        }
        return recommendDescribe;
    }
}
